package com.xhwl.logistics.converter.mapstruct;

import com.xhwl.common.dto.cent.vehicle.feign.CreateBiVehicleAccessRecordHourFeignDTO;
import com.xhwl.common.dto.cent.vehicle.feign.CreateBiVehiclePayRecordHourFeignDTO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueMappingStrategy;

import java.util.Date;

//toCreateBiVehicleAccessRecordHourFeignDTO和toCreateBiVehiclePayRecordHourFeignDTO这两个数据转换可以取消，调用方可以直接改用全参构造函数
@Mapper(nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT)
public interface CentBiConverter {

    CreateBiVehicleAccessRecordHourFeignDTO toCreateBiVehicleAccessRecordHourFeignDTO(Integer projectId, String parkingName,
                                                                                      Integer total, Integer in, Integer out,
                                                                                      Date processTime, Date ingestionTime);

    CreateBiVehiclePayRecordHourFeignDTO toCreateBiVehiclePayRecordHourFeignDTO(Integer projectId, String parkingName,
                                                                                Integer total, Integer webChatPay, Integer aliPay, Integer onlinePay, Integer other,
                                                                                Date processTime, Date ingestionTime);

}
